package com.ktvme.mapper;


import com.ktvme.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {


    @Insert("insert into user(username,password,email,status)" +
            "values " +
            "(#{username},#{pwd},#{email},#{status})")
    void insert(User user);

    @Select("select * from user where username = #{username}")
    User getByUsername(String username);
}
